package com.ruoyi.voit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.voit.mapper.PaymentRecordMapper;
import com.ruoyi.voit.domain.PaymentRecord;
import com.ruoyi.voit.service.IPaymentRecordService;

/**
 * 支付交易记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
@Service
public class PaymentRecordServiceImpl implements IPaymentRecordService 
{
    @Autowired
    private PaymentRecordMapper paymentRecordMapper;

    /**
     * 查询支付交易记录
     * 
     * @param paymentId 支付交易记录主键
     * @return 支付交易记录
     */
    @Override
    public PaymentRecord selectPaymentRecordByPaymentId(String paymentId)
    {
        return paymentRecordMapper.selectPaymentRecordByPaymentId(paymentId);
    }

    /**
     * 查询支付交易记录列表
     * 
     * @param paymentRecord 支付交易记录
     * @return 支付交易记录
     */
    @Override
    public List<PaymentRecord> selectPaymentRecordList(PaymentRecord paymentRecord)
    {
        return paymentRecordMapper.selectPaymentRecordList(paymentRecord);
    }

    /**
     * 新增支付交易记录
     * 
     * @param paymentRecord 支付交易记录
     * @return 结果
     */
    @Override
    public int insertPaymentRecord(PaymentRecord paymentRecord)
    {
        return paymentRecordMapper.insertPaymentRecord(paymentRecord);
    }

    /**
     * 修改支付交易记录
     * 
     * @param paymentRecord 支付交易记录
     * @return 结果
     */
    @Override
    public int updatePaymentRecord(PaymentRecord paymentRecord)
    {
        return paymentRecordMapper.updatePaymentRecord(paymentRecord);
    }

    /**
     * 批量删除支付交易记录
     * 
     * @param paymentIds 需要删除的支付交易记录主键
     * @return 结果
     */
    @Override
    public int deletePaymentRecordByPaymentIds(String[] paymentIds)
    {
        return paymentRecordMapper.deletePaymentRecordByPaymentIds(paymentIds);
    }

    /**
     * 删除支付交易记录信息
     * 
     * @param paymentId 支付交易记录主键
     * @return 结果
     */
    @Override
    public int deletePaymentRecordByPaymentId(String paymentId)
    {
        return paymentRecordMapper.deletePaymentRecordByPaymentId(paymentId);
    }
}
